﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Data;

namespace SdmxDiff
{
    public class ReportDiff
    {
        public const string ArtefactTypeCol = "AR_TYPE";
        public const string FullIdCol = "FULL_ID";
        public const string ItemCol = "ITEM";
        public const string SubjectCol = "SUBJECT";
        public const string CommentCol = "COMMENT";
        public const string OldTextCol = "OLD_TXT";
        public const string NewTextCol = "NEW_TXT";
        public const string TextDiffersMark = "Text differs in : (";
        public const char LangSpearator = ',';


        public DataTable ReportTable { get; private set; }

        public ReportDiff()
        {
            CreateTableStructure();
        }


        private void CreateTableStructure()
        {
            ReportTable = new DataTable("Diff");
            ReportTable.Columns.Add(new DataColumn(ArtefactTypeCol, typeof(string)));
            ReportTable.Columns.Add(new DataColumn(FullIdCol, typeof(string)));
            ReportTable.Columns.Add(new DataColumn(ItemCol, typeof(string)));
            ReportTable.Columns.Add(new DataColumn(SubjectCol, typeof(string)));
            ReportTable.Columns.Add(new DataColumn(CommentCol, typeof(string)));
            ReportTable.Columns.Add(new DataColumn(NewTextCol, typeof(SdmxMl.Common.MultiLang)));
            ReportTable.Columns.Add(new DataColumn(OldTextCol, typeof(SdmxMl.Common.MultiLang)));
        }
    }
}
